package com.samehope.ar.mapper;

import com.samehope.ar.entity.Company;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.samehope.ar.vo.CompanyDataVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 公司 Mapper 接口
 * </p>
 *
 * @author Zhang Luo
 * @since 2019-12-23
 */
public interface CompanyMapper extends BaseMapper<Company> {

    /**
     * 根据企业名称查找企业信息
     * @param companyName
     * @param companyId
     * @return
     */
    Company findByCompanyName(@Param("companyName") String companyName, @Param("companyId")Long companyId);

    /**
     * 根据用户查询企业相关信息
     * @param userId
     * @return
     */
    List<CompanyDataVO> findByUser(@Param("userId")Long userId);
}
